From 7283e6eae830820bd4644bf48b271b63b3bd7a11 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 5 Feb 2010 13:57:20 +0000 Subject: [PATCH] blktap2: Fix non-Linux build Signed-off-by: Christoph Egger Signed-off-by: Keir Fraser --- tools/blktap2/drivers/tapdisk-queue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/blktap2/drivers/tapdisk-queue.c b/tools/blktap2/drivers/tapdisk-queue.c index 1e48bd946e..b6394bfdad 100644 --- a/tools/blktap2/drivers/tapdisk-queue.c +++ b/tools/blktap2/drivers/tapdisk-queue.c @@ -287,7 +287,11 @@ struct lio { static int tapdisk_lio_check_resfd(void) { +#if defined(__linux__) return tapdisk_linux_version() >= KERNEL_VERSION(2, 6, 22); +#else + return 1; +#endif } static void -- 2.30.2